#pragma once
#include<stdio.h>
#include"creature.h"

/*狼，移动速度和搜索范围均强于羊，移动到羊的位置即捕猎完成可以吃掉羊,后续考虑加入战斗规则*/
class Wolf :public Creature
{
public:
	Wolf();
	Wolf(int name);
	Wolf(int name, int x, int y, Flag flag);
	void choose_target_race(int mode);
	void record(Creature& c);
};

/*羊，吃草，躲避狼*/
class Sheep :public Creature
{
public:
	Sheep();
	Sheep(int name);
	Sheep(int name, int x, int y, Flag flag);
	void choose_target_race(int mode);
	virtual void search();
};

/*草，性别flag全部是2，行动模式只有生长和繁殖*/
class Grass :public Creature
{
public:
	Grass();
	Grass(int name);
	Grass(int name, int x, int y, Flag flag);
	virtual void action();
	virtual void eat();
	virtual void breed();
	virtual void record();
};